//-----------------------------------------------------------------------------------------
// Модуль catalogue: Редактирование дерева и пр.
//-----------------------------------------------------------------------------------------
$(function() {
		$("#dlgEditTags").dialog({
			bgiframe: true,
			height: 270,
			width: 400,
			modal: true,
			autoOpen: false
		});
	});
function RefreshPrice()
{
	$("#dlgRefreshPrices").dialog('open');
	return false;
}
function ShowEditTagDlg()
{
	$("#dlgEditTags").dialog('open');
	$.getJSON("index.php?module=catalogue&action=gettags&json=1&id="+id,function(data){ $('#tags').val(data.tags); });
	return false;
}
function SaveTagCloseDlg()
{
	$.post("index.php?module=catalogue&action=settags&json=1&id="+id, { tags: $('#tags').val()});
	$("#dlgEditTags").dialog('close');
	return false;
}
